package com.ezops.businessprocess.integration.identity;

import org.activiti.engine.identity.User;

import com.ezops.model.EzopsUserProfile;

/**
 * User wrapper over activiti user.
 * 
 * @author vgaurav
 * 
 */
public class EzopsUser implements User {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private EzopsUserProfile userProfile;

	public EzopsUserProfile getUserProfile() {
		return userProfile;
	}

	public EzopsUser(EzopsUserProfile userProfile) {
		this.userProfile = userProfile;
	}

	@Override
	public String getId() {
		return userProfile.getUserId();
	}

	@Override
	public void setId(String id) {
	}

	@Override
	public String getFirstName() {
		return userProfile.getFirstName();
	}

	@Override
	public void setFirstName(String firstName) {
		// TODO Auto-generated method stub

	}

	@Override
	public void setLastName(String lastName) {
		// TODO Auto-generated method stub

	}

	@Override
	public String getLastName() {
		return userProfile.getLastName();
	}

	@Override
	public void setEmail(String email) {
		// TODO Auto-generated method stub

	}

	@Override
	public String getEmail() {
		return userProfile.getEmailAddress();
	}

	@Override
	public String getPassword() {
		return null;
	}

	@Override
	public void setPassword(String string) {

	}

	@Override
	public boolean isPictureSet() {
		return false;
	}

}
